package com.baidu.springcloud.config;


import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 配置类
 *
 * @author shilei
 * @Time 2019/10/14
 **/

@ConfigurationProperties(prefix = "generId.worker")
public class IdWorkerProperties {
    /**
     * 当前机器id
     */
    private long workerId;

    /**
     * 序列号
     */
    private long dataCenterId;

    public long getWorkerId() {
        return workerId;
    }

    public void setWorkerId(long workerId) {
        this.workerId = workerId;
    }

    public long getDataCenterId() {
        return dataCenterId;
    }

    public void setDataCenterId(long dataCenterId) {
        this.dataCenterId = dataCenterId;
    }
}
